'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);
  router.post('/login', controller.user.login);//登陆
  router.post('/add', controller.data.add);//憎
  router.post('/sc', controller.data.sc);//删除
  router.post('/gai', controller.data.g);//修改
  router.post('/cha', controller.data.c);//查
};